package com.wenli.graduate2022.wenliGreenShop.service.servDao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wenli.graduate2022.wenliGreenShop.entity.ProductOrder;

import java.util.List;

/**
 * @author HuangHai
 * @date 2021/10/13 16:16
 */
public interface ProductOrderService {

    List<ProductOrder> findByUserId(Integer id);      //根据用户id查询它的所有订单
    IPage<ProductOrder> findByPage(Page page);  //倒序分页查询
    IPage<ProductOrder> findByCode(Page page,String code);       //根据订单号查询订单
    ProductOrder findByOrderId(Integer id);           //根据订单id查询
    int updateStatus(String code);   //商家发货，改变订单状态
    int delete(Integer id);           //根据订单编号删除订单
    int insert(ProductOrder productOrder,String address,String userId);



}
